<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/global/nav" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>{$Think.lang.导航配置}</h1>
    </div>
    <div class="datas">
      <div class="datas-bd">
        <table class="table">
          <thead>
            <tr>
              <th style="width:15px">
                <input type="checkbox" class="toggle-all" title="全选" value="0">
              </th>
              <th style="width:40px">ID</th>
              <th style="">{$Think.lang.名称}</th>
              <th style="">{$Think.lang.链接}</th>
              <th style="width:80px">{$Think.lang.显示顺序}</th>
              <th style="width:30px">{$Think.lang.状态}</th>
              <th style="">{$Think.lang.未登录显示状态}</th>
              <th style="">{$Think.lang.operating}</th>
            </tr>
          </thead>
          <tbody>
            <volist id="vo" name="site_top_nav">
              <tr data-id="{$vo.id}">
                <td>
                  <input type="checkbox" name="checkbox" class="toggle">
                </td>
                <td>{$vo.id}</td>
                <td>{$vo.name}</td>
                <td>{$vo.url}</td>
                <td>{$vo.order_sort}</td>
                <td>
                  <eq name="vo.status" value="1">开启
                    <else />关闭</eq>
                </td>
                <td>
                  <eq name="vo.no_login_show" value="1">开启
                    <else />关闭</eq>
                </td>
                <td>
                  <a href="{:URL('admin/Global/addNav',array('pid'=>$vo['id']))}">{$Think.lang.添加子导航}</a>|
                  <a href="{:URL('admin/Global/addNav',array('id'=>$vo['id']))}">{$Think.lang.编辑}</a>|
                  <a href="javascript:;" class="A_del">{$Think.lang.delete}</a>
                </td>
              </tr>
              <if condition="isset($vo['child'])">
                <volist name="vo.child" id="cvo">
                  <tr data-id="{$cvo.id}">
                    <td>
                      <input type="checkbox" name="checkbox" class="toggle">
                    </td>
                    <td>{$cvo.id}</td>
                    <td>┗ {$cvo.name}</td>
                    <td>{$cvo.url}</td>
                    <td>{$cvo.order_sort}</td>
                    <td>
                      <eq name="cvo.status" value="1">开启
                        <else />关闭</eq>
                    </td>
                    <td>
                      <eq name="cvo.no_login_show" value="1">开启
                        <else />关闭</eq>
                    </td>
                    <td>
                      <a href="{:URL('admin/Global/addNav',array('id'=>$cvo['id']))}">{$Think.lang.编辑}</a>|
                      <a href="javascript:;" class="A_del">{$Think.lang.delete}</a>
                    </td>
                  </tr>
                </volist>
              </if>
            </volist>
          </tbody>
        </table>
      </div>

      <div class="datas-ft">
        <div class="actions">
          <a href="{:URL('admin/Global/addNav')}" class="btn">{$Think.lang.添加导航}</a>
          <a href="javascript:;" class="btn" id="J_del">{$Think.lang.删除导航}</a>
        </div>
      </div>

    </div>

  </div>
</body>

</html>
